<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <script>
        function du(){

        /*var synth = window.speechSynthesis;
var utterance = new SpeechSynthesisUtterance('Hello, world!');
synth.speak(utterance);*/
var synth = window.speechSynthesis;
var utterance = new SpeechSynthesisUtterance('hello you');
utterance.lang = 'zh-CN';
utterance.voice = synth.getVoices().find(function(voice) {
  return voice.name === 'Microsoft Huihui Desktop - Chinese (Simplified)';
});
synth.speak(utterance);
}
    </script>
    <title>语音识别示例</title>
</head>
<body>
   <button onclick="du()">读一下</button>
   <p id="aa"></p>
</body>

<script src="js/ws.js"></script>
<script src="js/main.js"></script>
<script src="js/audio.js"></script>
</html>
